package com.alex.consumer.controller;

import com.alex.consumer.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class TestController {

    @Resource
    private UserService userService;

    @GetMapping("/get")
    public String test01() {
        System.out.println("controller test01");
        return userService.hello();
    }
}
